package com.ss.android.article.base.ui;

import android.animation.Animator;
import android.view.View;
import android.view.ViewGroup;

public final class ar implements Animator.AnimatorListener {
    private final View a;
    private OnRemoveAnmatorFinishListener b;

    public ar(View arg1, OnRemoveAnmatorFinishListener arg2) {

        this.a = arg1;
        this.b = arg2;
    }

    public final void onAnimationCancel(Animator arg4) {
        if(this.b != null) {
            this.b.a(this.a, true);
        }
    }

    public final void onAnimationEnd(Animator arg4) {
        ViewGroup.LayoutParams v0 = this.a.getLayoutParams();
        v0.height = 0;
        this.a.setLayoutParams(v0);
        if(this.b != null) {
            this.b.a(this.a, false);
        }
    }

    public final void onAnimationRepeat(Animator arg1) {
    }

    public final void onAnimationStart(Animator arg1) {
    }
}

